package com.example.wac.job.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author wuancheng
 * @description
 * @date 2022-05-31 17:03:00
 */

@Component
@ConfigurationProperties(prefix = "elasticjob")
@Getter
@Setter
public class ElasticJobProperties {
    /**
     * 1.yml文件初始化elasticjob参数
     * 2.disconf拉取初始化ReloadablePropertiesFactoryBean
     * 3.ReloadablePropertiesFactoryBean获取的文件填充elasticjob参数
     * 4.通过elasticjob获取所有job参数
     */
    private Map<String, ElasticJobConfigurationProperties> jobs = new LinkedHashMap<>();
}
